// 课程管理
import { request } from '../util/request.js'

export function courseGroupUpload(data) { // 课程组管理批量导入上传文件
    return request( '/api/import/courseGroup/upload', data, 'post')
}

export function courseGroupDownload() { // 课程组管理批量导入下载Excel模板
    return request('/api/import/courseGroup/download',null, 'get')
}

export function courseGroupImport(data) { // 课程组管理批量导入导入课程信息
    return request('/api/import/courseGroup', data, 'post')
}

export function courseGroupInfo(data) { // 获取批量导入编辑的课程组信息
    return request('/api/import/courseGroupInfo', data, 'get')
}

//课程组列表

export function courseGroupGetCourses(data) { // 获取学院内的所有课程
    return request('/api/courseGroup/get/courses', data, 'get')
}
export function courseGroupGetClasses(data) { // 获取学院内的所有班级
    return request('/api/courseGroup/get/classes', data, 'get')
}
export function courseGroupGetTeacher(data) { // 获取学院内的所有老师
    return request('/api/courseGroup/get/teachers', data, 'get')
}
export function courseGroupGetCouGro(data) { // 获取课程组列表
    return request('/api/courseGroup/get', data, 'get')
}
export function courseGroupQuery(data) { // 查询课程组信息
    return request('/api/courseGroup/query', data, 'post')
}
export function detailCourseIGroupInfo(data) { // 查看课程组信息
    return request('/api/courseGroup/get/courseGroupInfo', data, 'get')
}
export function courseGroupModify(data) { // 编辑课程组信息
    return request('/api/courseGroup/modify', data, 'post')
}
export function courseGroupDelete(data) { // 删除课程组信息
    return request('/api/courseGroup/delete', data, 'get')
}
export function BatchDelete(data) { // 批量删除课程组信息
    return request('/api/courseGroup/batchDel', data, 'post')
}
export function courseGroupAdd(data) { // 新建课程组信息
    return request('/api/courseGroup/add', data, 'post')
}

export function selectCourseGroupTeacher(data){
    return request('/api/courseGroup/select/teacher',data,'get')
}

export function deselectCourseGroupTeacher(data){
    return request('/api/courseGroup/deselect/teacher',data,'get')
}

export function selectCourseGroupClass(data){
    return request('/api/courseGroup/select/class',data,'get')
}

export function deselectCourseGroupClass(data){
    return request('/api/courseGroup/deselect/class',data,'get')
}
